// by Xeno
private ["_vehicle"];
#include "x_setup.sqf"

#define __Poss _poss = x_sm_pos select 0;
#define __PossAndOther _poss = x_sm_pos select 0;_pos_other = x_sm_pos select 1;

x_sm_pos = [[8713.46,3999.47,0], [8773.56,4034.42,0]]; // index: 7,   Training facility near Gorka
x_sm_type = "normal"; // "convoy"

#ifdef __SMMISSIONS_MARKER__
if (true) exitWith {};
#endif

if (X_Client) then {
	d_current_mission_text = "There is an enemy training facility near Kirabo. Destroy the main building to cut down their possibilities to train new soldiers.";
	d_current_mission_resolved_text = "Good job. The main building of the training facility is destroyed.";
};

if (isServer) then {
	__PossAndOther
	_vehicle = "Land_Barrack2" createvehicle (_poss);
	#ifndef __TT__
	[_vehicle] execFSM "fsms\XCheckSMHardTarget.fsm";
	#else
	[_vehicle] execFSM "fsms\XCheckSMHardTargetTT.fsm";
	#endif
	_vehicle setDir 255;
	sleep 2.132;
	["specops", 1, "basic", 1, _poss,80,true] spawn XCreateInf;
	sleep 2.234;
	["shilka", 0, "uaz_grenade", 1, "uaz_mg", 1, _poss,1,110,true] spawn XCreateArmor;
	__AddToExtraVec(_vehicle)
};

if (true) exitWith {};